import {createRouter, createWebHashHistory} from "vue-router";


const AppContainer = () => import("@/views/AppContainer")
const HomePage = () => import("@/views/HomePageView")
const Order = () => import("@/views/OrderView")
const PersonalCenter = () => import("@/views/PersonalCenterView")

const routes = [
    {
        path: "/app",
        name: "AppContainer",
        component: AppContainer
    },
    {
        path: "/home-page",
        name: "HomePage",
        component: HomePage
    },
    {
        path: "/order",
        name: "Order",
        component: Order
    },
    {
        path: "/personal-center",
        name: "PersonalCenter",
        component: PersonalCenter
    },
    {
        path: "*", redirect: "/app"
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router